//package com.alice.util;
//
//import com.github.dockerjava.api.DockerClient;
//import com.github.dockerjava.api.command.CreateContainerResponse;
//
//public class CreateAndStartContainer {
//    public static void main(String[] args){
//        DockerClientService dockerClientService =new DockerClientService();
//        //连接docker服务器
//        DockerClient client = dockerClientService.connectDocker();
//        //创建容器
//        CreateContainerResponse container = dockerClientService.createContainers(client,"nginx1","nginx:latest");
//        //启动容器
//        dockerClientService.startContainer(client,container.getId());
//    }
//}
